<?php if (!defined('THINK_PATH')) exit();?><html lang="en" style="font-size: 100px;">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
<link rel="icon" href="/favicon.ico">
<title>h8pay</title>
<style>body {
        background: #f2f2f2;
      }
      @media screen and (min-width: 767px) {
        #app {
          width: 540px;
          margin: 0 auto;
          min-height: 100vh;
          box-sizing: border-box;
          border: 1px solid #999;
          /* overflow-y: hidden; */
        }
        .van-popup--top {
          width: 540px;
          margin: 0 auto;
        }
      }</style>
	  <link href="/css/chunk-02960128.d8e4678b.css" rel="prefetch"><link href="/css/chunk-03d19c5b.da3b4d7d.css" rel="prefetch">
	  <link href="/css/chunk-12ee7e7e.be873f85.css" rel="prefetch"><link href="/css/chunk-16db521b.9f656bd8.css" rel="prefetch"><link href="/css/chunk-24229c8f.122b5dbc.css" rel="prefetch"><link href="/css/chunk-260b9ee0.d82954b0.css" rel="prefetch"><link href="/css/chunk-28327744.848026e7.css" rel="prefetch"><link href="/css/chunk-290088a4.e0e1dd88.css" rel="prefetch"><link href="/css/chunk-293e36ce.b6fe070f.css" rel="prefetch"><link href="/css/chunk-2a2c3438.3a05a371.css" rel="prefetch"><link href="/css/chunk-30530650.83ef8890.css" rel="prefetch"><link href="/css/chunk-31dfc6cc.49d996f2.css" rel="prefetch"><link href="/css/chunk-38d9c4e3.72558616.css" rel="prefetch"><link href="/css/chunk-3e56bb55.eded3812.css" rel="prefetch"><link href="/css/chunk-41206b58.2fe3c40b.css" rel="prefetch"><link href="/css/chunk-43155bdd.7506223a.css" rel="prefetch"><link href="/css/chunk-45fabb50.f6fb2ae2.css" rel="prefetch"><link href="/css/chunk-4dbebf52.c3310d55.css" rel="prefetch"><link href="/css/chunk-501ca340.bb40b437.css" rel="prefetch"><link href="/css/chunk-5753040b.49d996f2.css" rel="prefetch"><link href="/css/chunk-57d8499b.96222562.css" rel="prefetch"><link href="/css/chunk-58705b64.1442bd8d.css" rel="prefetch"><link href="/css/chunk-5ea3ec15.30d377cf.css" rel="prefetch"><link href="/css/chunk-5f1d8bc4.25eff320.css" rel="prefetch"><link href="/css/chunk-6731c9f2.5b48773c.css" rel="prefetch"><link href="/css/chunk-6a2440bf.15a728eb.css" rel="prefetch"><link href="/css/chunk-6de0daa4.5391e009.css" rel="prefetch"><link href="/css/chunk-731cdd2b.a9740232.css" rel="prefetch"><link href="/css/chunk-9fea3c5c.531c8116.css" rel="prefetch"><link href="/css/chunk-ae7bdc24.38e0efd9.css" rel="prefetch"><link href="/css/chunk-d08caeb6.b385e467.css" rel="prefetch"><link href="/css/chunk-dee820da.cfa2c36a.css" rel="prefetch"><link href="/css/chunk-e1f1707a.079dd8a4.css" rel="prefetch"><link href="/css/chunk-e911781e.d87f005c.css" rel="prefetch"><link href="/css/chunk-edede612.b1bc4af4.css" rel="prefetch"><link href="/css/chunk-fde07e7a.adc0509a.css" rel="prefetch"><link href="/js/chunk-02960128.e3c7e508.js" rel="prefetch"><link href="/js/chunk-03d19c5b.27befa25.js" rel="prefetch"><link href="/js/chunk-071b2878.ae2fec1b.js" rel="prefetch"><link href="/js/chunk-089a5e6c.989dbb83.js" rel="prefetch"><link href="/js/chunk-12ee7e7e.307cd1dc.js" rel="prefetch"><link href="/js/chunk-16db521b.7109f654.js" rel="prefetch"><link href="/js/chunk-170f8e40.69f62aae.js" rel="prefetch"><link href="/js/chunk-24229c8f.46929d5e.js" rel="prefetch"><link href="/js/chunk-260b9ee0.1a81655c.js" rel="prefetch"><link href="/js/chunk-28327744.4a11f784.js" rel="prefetch"><link href="/js/chunk-290088a4.e862636e.js" rel="prefetch"><link href="/js/chunk-293e36ce.1420743f.js" rel="prefetch"><link href="/js/chunk-2a2c3438.65ad57de.js" rel="prefetch"><link href="/js/chunk-2c41e510.2c195371.js" rel="prefetch"><link href="/js/chunk-2d0f0c02.2926760c.js" rel="prefetch"><link href="/js/chunk-2d209530.b5cf094b.js" rel="prefetch"><link href="/js/chunk-30530650.c54c1d46.js" rel="prefetch"><link href="/js/chunk-31dfc6cc.3f1001c2.js" rel="prefetch"><link href="/js/chunk-38d9c4e3.8ea2ebe4.js" rel="prefetch"><link href="/js/chunk-3e56bb55.719e241b.js" rel="prefetch"><link href="/js/chunk-41206b58.9330140e.js" rel="prefetch"><link href="/js/chunk-43155bdd.e84d6a1d.js" rel="prefetch"><link href="/js/chunk-45fabb50.f76bd21f.js" rel="prefetch"><link href="/js/chunk-4dbebf52.4e82767b.js" rel="prefetch"><link href="/js/chunk-501ca340.0957cc55.js" rel="prefetch"><link href="/js/chunk-5753040b.b03c4f33.js" rel="prefetch"><link href="/js/chunk-57d8499b.a72ea326.js" rel="prefetch"><link href="/js/chunk-58705b64.3dc71b78.js" rel="prefetch"><link href="/js/chunk-5ea3ec15.3c920ba3.js" rel="prefetch"><link href="/js/chunk-5f1d8bc4.231bcb0e.js" rel="prefetch"><link href="/js/chunk-6731c9f2.10291975.js" rel="prefetch"><link href="/js/chunk-6a2440bf.68deef23.js" rel="prefetch"><link href="/js/chunk-6de0daa4.ea9e4c1a.js" rel="prefetch"><link href="/js/chunk-731cdd2b.fd165dc0.js" rel="prefetch"><link href="/js/chunk-9fea3c5c.ffde5972.js" rel="prefetch"><link href="/js/chunk-ae7bdc24.95a06cff.js" rel="prefetch"><link href="/js/chunk-d08caeb6.4d2b8171.js" rel="prefetch"><link href="/js/chunk-dee820da.c9a3f55b.js" rel="prefetch"><link href="/js/chunk-e1f1707a.6a487118.js" rel="prefetch"><link href="/js/chunk-e2d3447a.df0751b6.js" rel="prefetch"><link href="/js/chunk-e911781e.429fdb74.js" rel="prefetch"><link href="/js/chunk-edede612.c01c3641.js" rel="prefetch"><link href="/js/chunk-fde07e7a.d481bd8c.js" rel="prefetch"><link href="/css/app.2150f8cc.css" rel="preload" as="style"><link href="/css/chunk-vendors.e9f6096e.css" rel="preload" as="style"><link href="/js/app.7b6aaa54.js" rel="preload" as="script"><link href="/js/chunk-vendors.9dc788ca.js" rel="preload" as="script"><link href="/css/chunk-vendors.e9f6096e.css" rel="stylesheet"><link href="/css/app.2150f8cc.css" rel="stylesheet"><link rel="stylesheet" type="text/css" href="/css/chunk-43155bdd.7506223a.css"><script charset="utf-8" src="/js/chunk-43155bdd.e84d6a1d.js"></script><script>
if(('standalone' in window.navigator)&&window.navigator.standalone){
var noddy,remotes=false;
document.addEventListener('click',function(event){
noddy=event.target;
while(noddy.nodeName!=='A'&&noddy.nodeName!=='HTML') noddy=noddy.parentNode;
if('href' in noddy&&noddy.href.indexOf('http')!==-1&&(noddy.href.indexOf(document.location.host)!==-1||remotes)){
event.preventDefault();
document.location.href=noddy.href;
}
},false);
}
</script></head>
	  <body><div id="app"><div data-v-6b87e22a="" class="login">
	  
	  <div data-v-6b87e22a="" class="login-title"><div data-v-6b87e22a="">注   册</div></div>
	   <form name="AddUser" action="<?php echo U('Login/register');?>" id="registerForm"  class="formlogin mui-input-group form">
	  <div data-v-6b87e22a="" class="password"><div data-v-6b87e22a="" class="login-account van-cell van-field">
	   <div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input  placeholder="请输入手机号" class="van-field__control" name="mobile" id="mobile" maxlength="11" type="number"></div></div></div></div>
	     <div data-v-6b87e22a="" class="password"><div data-v-6b87e22a="" class="login-account van-cell van-field">
	   <div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="text" placeholder="请输入姓名" class="van-field__control" id="index_username" name="username" ></div></div></div></div>
	  <div data-v-6b87e22a="" class="password"><div data-v-6b87e22a="" class="login-account van-cell van-field"><div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="password" name="login_pwd" placeholder="请输入密码" class="van-field__control"></div></div></div></div>
	  <div data-v-6b87e22a="" class="password"><div data-v-6b87e22a="" class="login-account van-cell van-field"><div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="password" id="confirm_password"  name="relogin_pwd" placeholder="请确认密码" class="van-field__control"></div></div></div></div>
	  <div data-v-6b87e22a="" class="password"><div data-v-6b87e22a="" class="login-account van-cell van-field">
	   <div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="text" placeholder="请输入邀请码" class="van-field__control" name="pid"></div></div></div></div>
	  <div data-v-6b87e22a="" class="password"><div data-v-6b87e22a="" class="login-account van-cell van-field"><div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="text"  id="txyzm" name="code" value="" placeholder="请输入验证码" class="van-field__control"><img src="<?php echo U('Login/verify',array());?>" id="verify_img" style="width: 28%;float: right;"></div></div></div></div>
	 <!--div data-v-6b87e22a="" class="account"><div data-v-6b87e22a="" class="login-account van-cell van-field">
	   <div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="text" placeholder="请输入短信验证码" class="van-field__control" id="sms_code" name="sms_code"  ></div></div></div></div-->

	
         <div style="width: 292px;
    height: 50px;
    background: #1aad17;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 25px;
    margin: .1rem .2rem .1rem;margin-top:3%"  id="submit"  onclick="adduser()">
	<p style="color: #fff; margin-left: 43%;font-size: 21px;padding-top: 4%;font-family: Microsoft YaHei;">注 册</p></div>
	
          <a  href="<?php echo U('Login/login');?>"><div style="width: 292px;
    height: 50px;
    background: #1aad17;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 25px;
    margin: .1rem .2rem .1rem;">
	<p style="color: #fff; margin-left: 43%;font-size: 21px;padding-top: 4%;font-family: Microsoft YaHei;">登 录</p></div></a>
	  </form></div>
	  
	 
	  </div>
<script type="text/javascript" src="/Public/home/common/js/jquery-1.9.1.min.js" ></script>
 <script type="text/javascript" src="/Public/home/common/layer/layer.js" ></script>
<script type="text/javascript">

function imvr(){
		   var verifyURL = "<?php echo U('Login/verify',array());?>";
		   var time = new Date().getTime();
		   $("#verify_img").attr({
		      "src" : verifyURL 
		   });
		}
    var wait = 60;

    function time(o) {       

        if ($("#mobile").val() == "") {
            layer.msg("请填写手机号");
            return false;
        }       
if ($("#txyzm").val() == "") {
            layer.msg("请填写图形验证码");
            return false;
        } 
       /* if (!isMobile($("#phone").val())) {
            layer.msg("手机格式不正确");
            return false;
        }*/

        $.post("<?php echo U('Login/sendPhone');?>", { phone: $("#mobile").val() ,code: $("#txyzm").val()}, function(msg) { 
	
		if(msg.sf==0){
				layer.msg("验证码已经发送，注意查收");
			}else{
				layer.msg("发送失败");
			}
		},'json');

        okssss(o);
    }
    var wait = 60;
    function okssss(o) {
        if (wait == 0) {
            $(o).removeAttr("disabled");
            $(o).val("获取验证码");
            wait = 120;
        } else {
            $(o).attr("disabled", true);
            $(o).val("等待(" + wait + ")");
            wait--;
            setTimeout(function() {
                okssss(o);
            },
            1000);
        }
    }

    function adduser(){
        //验证注册
        var thisform=document.forms['AddUser'];
        var   reg = /^[0-9a-zA-Z]{6,20}$/;
        var   mobile_rex=/^1[3456789]\d{9}$/;
     
        var   username=thisform.username.value;//昵称
        var   mobile=thisform.mobile.value;
        var   login_pwd=thisform.login_pwd.value;
        var   relogin_pwd=thisform.relogin_pwd.value;


        if(username=='' || username==null){
            layer.msg('请输入姓名');
            return false;
        }

        if(mobile=='' || mobile==null){
            layer.msg('请输入手机号');
            return false;
        }
        if(!mobile_rex.test(mobile)){
            layer.msg('手机号码错误');
            return false;
        }

        if(login_pwd=='' || login_pwd==null){
            layer.msg('请输入密码');
            return false;
        }
        if(!reg.test(login_pwd)){
            layer.msg("登录密码只能为6-20位数字或字母");
            return false;
        }
        if(login_pwd!=relogin_pwd){
            layer.msg("两次输入登录密码不一致");
            return false;
        }
		
		
        var post_url = $("form[name='AddUser']").attr('action');
        var post_data= $("form[name='AddUser']").serialize();
        $.ajax({
            type: "POST",
            url: post_url,
            data:post_data,
            dataType: "json",
            success: function(re_data){
                //layer.close(index);//关闭加载
                if(re_data.status==1){
                    layer.msg(re_data.message);  //,data.url);
					setTimeout(function (args) {
						window.location.href = "<?php echo U('Login/login');?>";
					}, 3000);
 
                }
                else{
                    layer.msg(re_data.message);
                }
            }
        });
    }


</script>			
	  </body>
	  </html>